package sctu.edu.java.year2016.team06.project;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created by LCJ on 2016/6/22.
 */
public class DefineFileOutputStream extends FileOutputStream {

    public DefineFileOutputStream(File file) throws FileNotFoundException { // DefineFileOutputStream方法出错时丢出异常
        super(file);
    }
    public void write(String content) {

        try {
            this.write(content.getBytes("utf-8"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
